[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Types                   Data and Function Return Types

    C++ type declarations have the general form:

             [class] [type] declarator [ = initializer]
             [, declarator [ = initializer] ... ]

      Notes:    All identifiers must be declared before they can be used,
                with the exception of functions that return int values.

                The declarator (identifier) can be modified with a
                trailing *, [], or (), to signify pointer to, array of,
                or function returning, respectively.

                With the typedef keyword, new types can be defined using
                other types already defined.

                An expression of one type can be explicitly converted to
                another type using a cast.

                The amount of storage required by an object of any type
                can be determined using the sizeof compile-time operator.

                Certain types--specifically char, short, and float--are
                promoted (or widened) when used as function arguments.


See Also: typedef
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson